package po.tree;

import po.entity.Operatable;
import po.entity.Rule;

/**
 * Created by guowei on 2019/6/9.
 */
public class Node {
    private String ID;
    private Operatable operatable;
    private Position position;

    public Node(String ID, Operatable operatable, int level, int index) {
        this.ID = ID;
        this.operatable = operatable;
        this.position = new Position(level, index);
    }

    public String getID() {
        return ID;
    }

    public Operatable getOperatable() {
        return operatable;
    }

    public Position getPosition() {
        return position;
    }
}
